#include "StdAfx.h"
#include "alienar.h"
#include "defender.h"
#include "machine/williamsmachine.h"

static InputPort Port1 =
	{
		{
		{"Up",			I2_UP,		0x01,	I_HIGH},
		{"Down",			I2_DOWN,		0x02,	I_HIGH},
		{"Left",			I2_LEFT,		0x04,	I_HIGH},
		{"Right",		I2_RIGHT,	0x08,	I_HIGH},
		{"Start 1",		I_START1,	0x10,	I_HIGH},
		{"Start 2",		I_START2,	0x20,	I_HIGH},
		{"Button 1",	I2_B1,		0x40,	I_HIGH},
		{"Button 2",	I2_B2,		0x80,	I_HIGH},
		}
	};

static InputPort Port4 =
	{
		{
		{"Up",			I_UP,			0x01,	I_HIGH},
		{"Down",			I_DOWN,		0x02,	I_HIGH},
		{"Left",			I_LEFT,		0x04,	I_HIGH},
		{"Right",		I_RIGHT,		0x08,	I_HIGH},
		{"Start 1",		I_START1,	0x10,	I_HIGH},
		{"Start 2",		I_START2,	0x20,	I_HIGH},
		{"Button 1",	I_B1,			0x40,	I_HIGH},
		{"Button 2",	I_B2,			0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Calienar::Calienar()
{
SetName("alienar");						//set romset name
SetFlags(F_NOWATCHDOG | F_MUXINPUT);
SetScreen(304,256);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,0);
SetPort(2,&defenderPort3);
SetPort(3,&Port4);
AddROM("aarom10",	0xD000,0x1000,0x6feb0314,ROM_CPU1);
AddROM("aarom11",	0xE000,0x1000,0xae3a270e,ROM_CPU1);
AddROM("aarom12",	0xF000,0x1000,0x6be9f09e,ROM_CPU1);
AddROM("aarom01",	0x10000,0x1000,0xbb0c21be,ROM_CPU1);
AddROM("aarom02",	0x11000,0x1000,0x165acd37,ROM_CPU1);
AddROM("aarom03",	0x12000,0x1000,0xe5d51d92,ROM_CPU1);
AddROM("aarom04",	0x13000,0x1000,0x24f6feb8,ROM_CPU1);
AddROM("aarom05",	0x14000,0x1000,0x5b1ac59b,ROM_CPU1);
AddROM("aarom06",	0x15000,0x1000,0xda7195a2,ROM_CPU1);
AddROM("aarom07",	0x16000,0x1000,0xf9812be4,ROM_CPU1);
AddROM("aarom08",	0x17000,0x1000,0xcd7f3a87,ROM_CPU1);
AddROM("aarom09",	0x18000,0x1000,0xe6ce77b4,ROM_CPU1);
}

CMachine *Calienar::CreateMachine()
{
return(new CWilliamsMachine());
}
